/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Vue;

import com.trolltech.qt.core.QRectF;
import com.trolltech.qt.gui.QColor;
import com.trolltech.qt.gui.QPainter;
import com.trolltech.qt.gui.QStyleOptionGraphicsItem;
import com.trolltech.qt.gui.QWidget;
import Entites.Espece;

/**
 *
 * @author Utilisateur
 */
public class PTroll extends PEspece {

    public PTroll(Espece es) {
        super(es);
        color = new QColor(QColor.green);
    }
    private double adjust = 0.5;
    private QRectF boundingRect = new QRectF(-20 - adjust, -22 - adjust,
            40 + adjust, 83 + adjust);

    @Override
    public QRectF boundingRect() {
        return boundingRect;
    }

    @Override
    public void paint(QPainter painter, QStyleOptionGraphicsItem qsogi, QWidget qw) {
        // Body
        painter.setBrush(color);
        painter.drawEllipse(0, 0, 10, 10);
        //painter.drawPixmap(0, 0,new QPixmap("./images/icon.png"));

    }
}
